/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.sx.sx1.lintcode.day717;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;

/**
 *
 * @author Administrator
 */
public class FUZAI {

    public static void main(String[] args) {
        String str = "abcd./";
        System.out.println(str.contains("./"));
    }
    public static void mainQQQ(String[] args) {
//        try {
//            // 获取CPU核心数
//            int coreCount = Runtime.getRuntime().availableProcessors();
//            System.out.println("CPU核心数：" + coreCount);
//           // Thread.sleep(500);
//            System.out.println("totalMemory：" +  Runtime.getRuntime().totalMemory());
//            coreCount = 5;
//            // 创建线程池，设置线程数量
//            ExecutorService executor = Executors.newFixedThreadPool(coreCount);
//
//            // 提交任务执行
//            for (int i = 0; i < coreCount; i++) {
//                executor.submit(() -> {
//                    try {
//                        Thread.sleep(3000);
//                    } catch (Exception e) {
//
//                    }
//                    System.out.println("Task running on thread: " + Thread.currentThread().getName());
//                });
//            }
//
//            // 关闭线程池
//            executor.shutdown();
//        } catch (Exception e) {
//
//        }


        System.out.println("手动导入的表");
        String [] arr3 = {"int_0101_jggqxxb",
                "int_0101_jggqxxb_his",
                "int_0102_fzjgxxb",
                "int_0102_fzjgxxb_his",
                "int_0104_ygxxb_sg",
                "int_0104_ygxxb_sg_his",
                "int_0105_djglzxxb_sg",
                "int_0105_djglzxxb_sg_his",
                "int_0401_xzdyb",
                "int_0401_xzdyb_his",
                "int_1001_zztzzhxxhzb",
                "int_1001_zztzzhxxhzb_his",
                "int_1002_zztzzhccmxb",
                "int_1002_zztzzhccmxb_his",
                "int_1003_zztzjylsb",
                "int_1003_zztzjylsb_his",
                "int_1004_wttzqkb",
                "int_1004_wttzqkb_his",
                "int_1101_glfxxb",
                "int_1101_glfxxb_his",
                "int_1102_zdgljyb",
                "int_1102_zdgljyb_his",
                "int_1103_gljyhzb",
                "int_1103_gljyhzb_his"};

//        for (String s : arr3) {
//            System.out.println(s);
//        }
        Map<Integer,Integer> m3 = new HashMap<>();
        m3.put(1,111);
        m3.put(2,111222);
        m3.put(3,111333);

        System.out.println(m3.size());
        m3.remove(3);
        System.out.println(m3.size());

        boolean succss = true;
        try{
            int a =6/0;
        }catch (Exception e){
            System.out.println("ddd");
            succss = false;
        }

      if(succss)  System.out.println("1111111");
    }


    static class CustomThreadFactory implements ThreadFactory {
        private static int count = 0;

        @Override
        public Thread newThread(Runnable r) {
            count++;
            return new Thread(r, "CustomThread-" + count);
        }
    }


}
